<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a {
            text-decoration: none;
            color: #000;
        }

        .box a:hover {
            color: green;
        }

        .box1 a:hover {
            color: red;

        }
    </style>
</head>

<body>
    <div class="box">
        <a href="#/shipin">视频</a>
        <a href="#/zhibo">直播</a>
    </div>
    <div class="box1"></div>
</body>

</html>
<script>
    window.onhashchange = function () {
        //console.log( location.hash );
        switch (location.hash) {
            case '#/shipin':
                shipin_page();
                break;
            case '#/zhibo':
                zhibo_page();
                break;
        }
    }

    function shipin_page() {
        document.querySelector(".box1").innerHTML = `
        <a href="#">恋情曝光?李小璐带小鲜肉路旁摆拍..</a><br>
        <a href="#">陈前唔孕肚破离婚传闻，炫耀小t买...</a><br>
        <a href="#">赵本山徒弟的片酬，小沈阳片酬一年.老公比自己大的女明星，刘诗诗王艳....</a><br>
        <a href="#">“十亿富婆”李冰冰，3000万豪..</a><br>
        <a href="#">被老外退货的8位女星，宁静i遭家晃...</a>
        `;
    }

    function zhibo_page() {
        document.querySelector(".box1").innerHTML = `
        <a href="#">直播│双11全球快递“云监工“</a><br>
        <a href="#">慢直播│邂逅绝美云海日出</a><br>
        <a href="#">慢直播│天舟五号已到位，将丁近日...</a><br>
        <a href="#">慢直播│济南鄙实泉——天下第一泉</a><br>
        <a href="#">直播│立冬拥抱暖阳</a>
        `;
    }
</script>